package org.csu.agrisupply.api.common;

import lombok.Getter;

import java.io.Serializable;

@Getter
public enum ResponseCode implements Serializable {

    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(10,"NEED_LOGIN"),
    ILLEGAL_ARGUMENT(2,"ILLEGAL_ARGUMENT");



    private final int code;
    private final String description;

    ResponseCode(int code,String description)
    {
        this.code =code;
        this.description=description;
    }
}
